package com.mengtian_tech.tju.dataquery.api.model.tjuOracle;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlElement;


@Entity
@Table(name = "EMPLOYEE", schema="APP_MANAGER")
public class Employee implements Serializable{
    private static final long serialVersionUID = -3227530740046797071L;
    @Id
    @Column(name = "STAFF_ID", unique = true, nullable = false)
    private String staffId;
    @Column(name = "NAME")
    private String name;
    @Column(name = "NAME_PY")
    private String namePy;
    @Column(name = "GENDER_ID")
    private String genderId;
    @Column(name = "COLLEGE_ID")
    private String collegeId;
    @Column(name = "BIRTHDAY")
    private Date birthDate;
    @Column(name = "STATUS_ID")
    private String status;
    @Column(name = "DEPART")
    private String depart;
    @Column(name = "CELL_PHONE")
    private String cellPhone;
    @Column(name = "WORK_PHONE")
    private String workPhone;
    @Column(name = "HOME_PHONE")
    private String homePhone;
    @Column(name = "EMAIL")
    private String email;
    
    @Column(name="tpost_id" )
    private String tpostId;
    @Column(name = "APOST")
    private String apost;
    @Column(name = "NAME_QP")
    private String nameQp;
    @ManyToOne
    @JoinColumn(name="COLLEGE_ID",updatable=false,insertable=false)
    private College college;    
    @Column(name="IDENTITY_NO")
    private String identify;
    @Column(name="BIRTHPLACE")
    private String birthplace;    
    
   
    /** 员工类型id */
    @Column(name="stafftype_id")
    private String stafftypeId;
    
    @Column(name="PASSPORT_NO")
    private String passportNo;
    
    @Column(name="apostlevel_id")
    private String apostLevelId;
    
    
    public String getIdentify() {
		return identify;
	}

	public void setIdentify(String identify) {
		this.identify = identify;
	}

	public Employee() {
        super();
    }
    
    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    @XmlElement(name = "staff_id")
    public String getStaffId() {
        return staffId;
    }

    public void setName(String name) {
        this.name = name;
    }

    @XmlElement(name = "name")
    public String getName() {
        return name;
    }

    @XmlElement(name = "name_py")
    public String getNamePy() {
        return namePy;
    }

    public void setNamePy(String namePy) {
        this.namePy = namePy;
    }

    @XmlElement(name = "gender_id")
    public String getGenderId() {
        return genderId;
    }

    

    public void setGenderId(String genderId) {
		this.genderId = genderId;
	}

	@XmlElement(name = "college_id")
    public String getCollegeId() {
        return collegeId;
    }

    public void setCollegeId(String collegeId) {
        this.collegeId = collegeId;
    }

    @XmlElement(name = "birth_date")
    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    @XmlElement(name = "status")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @XmlElement(name = "depart")
    public String getDepart() {
        return depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    @XmlElement(name = "cell_phone")
    public String getCellPhone() {
        return cellPhone;
    }

    public void setCellPhone(String cellPhone) {
        this.cellPhone = cellPhone;
    }

    @XmlElement(name = "work_phone")
    public String getWorkPhone() {
        return workPhone;
    }

    public void setWorkPhone(String workPhone) {
        this.workPhone = workPhone;
    }

    @XmlElement(name = "home_phone")
    public String getHomePhone() {
        return homePhone;
    }

    public void setHomePhone(String homePhone) {
        this.homePhone = homePhone;
    }

    @XmlElement(name = "email")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    
   
    public String getApost() {
        return apost;
    }

    public void setApost(String apost) {
        this.apost = apost;
    }

    public College getCollege() {
        return college;
    }

    public void setCollege(College college) {
        this.college = college;
    }

    public String getNameQp() {
        return nameQp;
    }

    public void setNameQp(String nameQp) {
        this.nameQp = nameQp;
    }

	public String getBirthplace() {
		return birthplace;
	}

	public void setBirthplace(String birthplace) {
		this.birthplace = birthplace;
	}

	 
	public String getStafftypeId() {
		return stafftypeId;
	}

	public void setStafftypeId(String stafftypeId) {
		this.stafftypeId = stafftypeId;
	}

	public String getPassportNo() {
		return passportNo;
	}

	public void setPassportNo(String passportNo) {
		this.passportNo = passportNo;
	}

    public String getTpostId() {
        return tpostId;
    }

    public void setTpostId(String tpostId) {
        this.tpostId = tpostId;
    }

	public String getApostLevelId() {
		return apostLevelId;
	}

	public void setApostLevelId(String apostLevelId) {
		this.apostLevelId = apostLevelId;
	}

 
}
